<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <link rel="stylesheet" href="${ctx}/res/css/main.css">
    <link rel="stylesheet" href="${ctx}/res/css/plugins.css">
    <link rel="stylesheet" href="${ctx }/res/hplus/js/plugins/layer/skin/layer.css">
    <title>软装到家</title>
    <style type="text/css">
	    .layui-layer-dialog .layui-layer-content {
			color:black;
		}
	    
    </style>
</head>
<body>
<input type="hidden" name="userId" id="userId" value="${userId }" />
 <div class="simple-nav w-1200 margin-0-auto reg-nav">
    <img class="fl reg-logo" src="${ctx }/res/img/icon/reg-logo.png">
    <span class="fr text-black f12">我已经注册,现在就<a class="text-red" href="${ctx}/user/login">登录</a></span>
</div>
<div class="reg-body w-1200 margin-0-auto">
    <div class="reg-step clear">
        <div class="clear margin-0-auto dis-table">
        <span class="active step-item" style="z-index:100;">
            <span class="info-text">完善信息</span>
            <span class="bar"></span>
        </span>
        <span class="active step-item" style="z-index:101;">
            <span class="info-text">线上/线下缴费</span>
            <span class="bar"></span>
        </span>
        <span class="step-item" style="z-index:102;">
            <span class="info-text">待审核</span>
            <span class="bar"></span>
        </span>
        <span class="step-item" style="z-index:103;">
            <span class="info-text">注册完成</span>
        </span>
        </div>
    </div>
    <div class="reg-pay-panel margin-0-auto">
        <div class="reg-bill-info">
       <table>
           <tr class="thead">
               <td class="member-info">会员信息</td>
               <td class="amount">金额(元)</td>
               <td class="choose-pay">支付方式</td>
           </tr>
           <tr class="tbody">
               <td style="padding: 20px 39px;">
                   <p>名称：${factory.companyName }</p>
                   <p>地址：${factory.officeAddress }</p>
                   <p>电话：${user.mobile }</p>
               </td>
               <td class="text-red text-center">￥2000</td>
               <td>
                   <label class="radio-elem"><input type="radio" name="pay-way" value="online"><i class="radio-icon"></i>在线</label>
                   <label class="radio-elem"><input type="radio" name="pay-way" value="offline"><i class="radio-icon"></i>线下</label>
               </td>
           </tr>
       </table>
        </div>
        <button class="btn btn-primary submit" onclick="submitStepTwo();">付款</button>
    </div> 
</div>
<div class="login-foot w-1200 margin-0-auto">
    <div class="links">
        <a href="#">关于我们</a>
        <a href="#">联系我们</a>
        <a href="#">法律声明</a>
        <a href="#">人才招聘</a>
        <a href="#">手机欧工</a>
        <a href="#">友情链接</a>
        <a href="#">English Site</a>
    </div>
    <div class="copyright">Copyright © 2016 ogmall.com 欧工国际软装 版权所有</div>
</div><script type="text/javascript" src="${ctx}/res/js/lib.js"></script>
<script type="text/javascript" src="${ctx}/res/js/plugins.js"></script>
<script type="text/javascript" src="${ctx}/res/js/modules.js"></script>
<script src="${ctx }/res/hplus/js/plugins/layer/layer.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('.bxslider').bxSlider({
            preloadImages:'all',
            auto:true
        });
    }); 
    
    function submitStepTwo() {   //跳转到下一步
		/* layer.msg('提交成功，正在进行跳转...',{time: 5000, icon:6,shade: [0.5, '#f5f5f5']});
    	setTimeout(function() {
    		location.href = '${ctx}/user/goNextStep?registerType=factory&step=3';
    	},3000); */
    	var userId = $('#userId').val();
    	location = '${ctx}/pay/gotoPay?payType=1&payBizType=2&orderId='+userId+'&amount=2000&userId='+userId;
    }
</script>
</body>
</html>
